package com.lingyu.jsjx.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lingyu.jsjx.domain.DocumentShare;

/**
 * 共享
Service接口
 * 
 * @author ruoyi
 * @date 2025-07-31
 */
public interface IDocumentShareService extends IService<DocumentShare>
{
    /**
     * 查询所有共享文档
     * 
     * @param wordId 文档id
     * @return 共享
     */
    public List<DocumentShare> selectDocumentShareByWordId(Long wordId);

    /**
     * 查询共享列表
     * 
     * @param documentShare 共享
     * @return 共享集合
     */
    public List<DocumentShare> selectDocumentShareList(DocumentShare documentShare);

    /**
     * 新增共享
     * 
     * @param documentShare 共享
     * @return 结果
     */
    public int insertDocumentShare(DocumentShare documentShare);

    /**
     * 新增共享
     *
     * @param list 共享
     * @return 结果
     */
    public int batchInsertDocumentShare(List<DocumentShare> list);


    /**
     * 批量删除共享
     * 
     * @param shareIds 需要删除的共享主键集合
     * @return 结果
     */
    public int deleteDocumentShareByShareIds(Long[] shareIds);

    /**
     * 删除共享信息
     * 
     * @param shareId 共享主键
     * @return 结果
     */
    public int deleteDocumentShareByShareId(Long shareId);
}
